package com.ram.testcoherence;

import com.ram.testcoherence.entity.Person;

import com.tangosol.util.MapEvent;
import com.tangosol.util.MapListener;

public class PersonCacheListener implements MapListener {
    public PersonCacheListener() {
        super();
    }

    public void entryInserted(MapEvent mapEvent) {
        Person person = (Person)mapEvent.getNewValue();
        System.out.println("Event Listener value is :"+person.getName());
    }

    public void entryUpdated(MapEvent mapEvent) {
    }

    public void entryDeleted(MapEvent mapEvent) {
    }
}
